package com.xlw.ui.view;

import android.content.Context;
import android.opengl.GLSurfaceView;
import android.view.KeyEvent;

/**
 * Created by xinliwei on 2015/7/5.
 */
public class MyGLSurfaceView extends GLSurfaceView {

    private MyGLRenderer mrender;

    public MyGLSurfaceView(Context context) {
        super(context);
        //getHolder().setFormat(PixelFormat.TRANSLUCENT);
        mrender = new MyGLRenderer();
        setRenderer(mrender);
    }

    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        return super.onKeyDown(keyCode, event);
    }
}
